import request from '@/utils/request'

// 查询退宿舍列表
export function listhisDormitory(query) {
  return request({
    url: '/business/hisdormitory/list',
    method: 'get',
    params: query
  })
}

// 查询退宿舍详细
export function gethisDormitory(id) {
  return request({
    url: '/business/hisdormitory/' + id,
    method: 'get'
  })
}

// 新增退宿舍
export function addhisDormitory(data) {
  return request({
    url: '/business/hisdormitory',
    method: 'post',
    data: data
  })
}

// 修改退宿舍
export function updatehisDormitory(data) {
  return request({
    url: '/business/hisdormitory',
    method: 'put',
    data: data
  })
}

// 删除退宿舍
export function delhisDormitory(id) {
  return request({
    url: '/business/hisdormitory/' + id,
    method: 'delete'
  })
}
